import { Breadcrumb as AntdBreadcrumb } from 'antd';
import React from 'react';
import Item from './Item';
import Separator from './Separator';

import type { BreadcrumbProps as AntdBreadcrumbProps } from 'antd';

export type { Props as BreadcrumbItemProps } from './Item';
export type { Props as BreadcrumbSeparatorProps } from './Separator';
export type { Item, Separator };

export type BreadcrumbProps = AntdBreadcrumbProps;

function Breadcrumb(props: BreadcrumbProps) {
  return <AntdBreadcrumb {...props} />;
}
Breadcrumb.Item = Item;
Breadcrumb.Separator = Separator;
export default Breadcrumb;
